// 封装优先级队列
function PriorityQueue() {
    // 内部类
    function QueueElement(element, priority) {
        this.element = element
        this.priority = priority
    }
    // 封装属性 
    this.item = []
}
// 测试代码 
var pq = new PriorityQueue()